package com.youcash.ZyWallet_spring.dao;

import com.youcash.ZyWallet_spring.entity.CustomersLoans;
import com.youcash.ZyWallet_spring.entity.CustomersLoansVO;
import com.youcash.ZyWallet_spring.general.GeneralDAO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomersLoansMapper extends GeneralDAO<CustomersLoans> {

    List<CustomersLoansVO> selectCustomersLoans();

    List<CustomersLoansVO> selectCustomersLoansById(int id);

    int updateStatusById(@Param("id") int id,
                         @Param("status") int status);

    List<CustomersLoansVO> selectStatusByCustomersId(@Param("customersId") int customersId,
                                                     @Param("status") int status);
}